package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TExamSiteMapper;
import com.ruoyi.system.domain.TExamSite;
import com.ruoyi.system.service.ITExamSiteService;
import com.ruoyi.common.core.text.Convert;

/**
 * 考点Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-03-02
 */
@Service
public class TExamSiteServiceImpl implements ITExamSiteService 
{
    @Autowired
    private TExamSiteMapper tExamSiteMapper;

    /**
     * 查询考点
     * 
     * @param id 考点ID
     * @return 考点
     */
    @Override
    public TExamSite selectTExamSiteById(Long id)
    {
        return tExamSiteMapper.selectTExamSiteById(id);
    }

    /**
     * 查询考点列表
     * 
     * @param tExamSite 考点
     * @return 考点
     */
    @Override
    public List<TExamSite> selectTExamSiteList(TExamSite tExamSite)
    {
        return tExamSiteMapper.selectTExamSiteList(tExamSite);
    }

    /**
     * 新增考点
     * 
     * @param tExamSite 考点
     * @return 结果
     */
    @Override
    public int insertTExamSite(TExamSite tExamSite)
    {
        return tExamSiteMapper.insertTExamSite(tExamSite);
    }

    /**
     * 修改考点
     * 
     * @param tExamSite 考点
     * @return 结果
     */
    @Override
    public int updateTExamSite(TExamSite tExamSite)
    {
        return tExamSiteMapper.updateTExamSite(tExamSite);
    }

    /**
     * 删除考点对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteTExamSiteByIds(String ids)
    {
        return tExamSiteMapper.deleteTExamSiteByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除考点信息
     * 
     * @param id 考点ID
     * @return 结果
     */
    @Override
    public int deleteTExamSiteById(Long id)
    {
        return tExamSiteMapper.deleteTExamSiteById(id);
    }
}
